//
//  PlayCell.m
//  WhereToTravel
//
//  Created by dlios on 15/10/19.
//  Copyright © 2015年 zhoushengmin. All rights reserved.
//

#import "PlayCell.h"
#define W self.contentView.frame.size.width/375
#define H self.contentView.frame.size.height/100

@implementation PlayCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatView];
    }
    return self;
}
- (void)creatView {
    self.leftImage = [[UIImageView alloc]init];
    self.topLabel = [[UILabel alloc]init];
    self.egLabel = [[UILabel alloc]init];
    self.perNmuLabel = [[UILabel alloc]init];
    self.imageViewOne = [[UIImageView alloc]init];
    self.imageViewTwo = [[UIImageView alloc]init];
    self.imageViewThree = [[UIImageView alloc]init];
    self.imageViewFour = [[UIImageView alloc]init];
    self.imageViewFive = [[UIImageView alloc]init];
    self.priceLabel = [[UILabel alloc]init];
    self.starLabel = [[UILabel alloc]init];
    self.iconImage = [[UIImageView alloc]init];
    self.scoreLabel = [[UILabel alloc]init];
    self.rightLabel = [[UILabel alloc]init];
    self.peopleLabel = [[UILabel alloc]init];
    [self.contentView addSubview:self.peopleLabel];
    [self.contentView addSubview:self.starLabel];
    [self.contentView addSubview:self.iconImage];
    [self.contentView addSubview:self.scoreLabel];
    [self.contentView addSubview:self.rightLabel];
    [self.contentView addSubview:self.priceLabel];
    [self.contentView addSubview:self.leftImage];
    [self.contentView addSubview:self.topLabel];
    [self.contentView addSubview:self.egLabel];
    [self.contentView addSubview:self.perNmuLabel];
    [self.contentView addSubview:self.imageViewOne];
    [self.contentView addSubview:self.imageViewTwo];
    [self.contentView addSubview:self.imageViewThree];
    [self.contentView addSubview:self.imageViewFour];
    [self.contentView addSubview:self.imageViewFive];
    self.topLabel.font = [UIFont boldSystemFontOfSize:15];
    self.egLabel.font = [UIFont systemFontOfSize:13];
    self.egLabel.textColor = [UIColor colorWithWhite:0.765 alpha:0.900];
    self.perNmuLabel.textColor = [UIColor colorWithWhite:0.768 alpha:0.900];
    self.perNmuLabel.font = [UIFont systemFontOfSize:13];
    self.peopleLabel.textColor = [UIColor colorWithWhite:0.767 alpha:0.900];
    self.peopleLabel.font = [UIFont systemFontOfSize:13];
    self.priceLabel.textColor = [UIColor redColor];
    self.priceLabel.font = [UIFont systemFontOfSize:12];
    self.starLabel.font = [UIFont systemFontOfSize:13];
    self.starLabel.textColor = [UIColor colorWithRed:0.947 green:0.725 blue:0.034 alpha:0.970];
    self.scoreLabel.font = [UIFont systemFontOfSize:13];
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.leftImage.frame = CGRectMake(W*10, H*10, W*100, H*80);
    self.topLabel.frame = CGRectMake(W*120, H*5, W*200, H*20);
    self.egLabel.frame = CGRectMake(W*120, H*25, W*200, H*20);
    self.peopleLabel.frame = CGRectMake(W*120, H*75, W*200, H*20);
    self.perNmuLabel.frame = CGRectMake(W*140, H*70, W*200, H*20);
    self.imageViewOne.frame = CGRectMake(W*118, H*55, W*20, H*20);
    self.imageViewTwo.frame = CGRectMake(W*138, H*55, W*20, H*20);
    self.imageViewThree.frame = CGRectMake(W*158, H*55, W*20, H*20);
    self.imageViewFour.frame = CGRectMake(W*178, H*55, W*20, H*20);
    self.imageViewFive.frame = CGRectMake(W*198, H*55, W*20, H*20);
    self.priceLabel.frame = CGRectMake(W*120, H*40, W*200, H*20);
    self.iconImage.frame = CGRectMake(W*120, H*70, W*20, H*20);
    self.starLabel.frame = CGRectMake(W*125, H*45, W*200, H*20);
    self.scoreLabel.frame = CGRectMake(W*300, H*10, W*75, H*20);
    self.rightLabel.frame = CGRectMake(W*280, H*70, W*90, H*20);
}

@end
